From: Jasper St. Pierre Date: Tue, 14 Aug 2012 16:05:34 +0000 (-0300) Subject: keyringPrompt: Improve styling here as well X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6197 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9f07a3dd4a2831a8f190659323a3af15929fccae;p=gnome-shell.git keyringPrompt: Improve styling here as well Again, center the "Password" label, and add some spacing between it and the entry. https://bugzilla.gnome.org/show_bug.cgi?id=681821 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 671c45028..c3a0fe93f 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -1907,6 +1907,7 @@ StButton.popup-menu-item:insensitive { .keyring-dialog-control-table { spacing-rows: 15px; + spacing-columns: 1em; } /* Magnifier */ diff --git a/js/ui/keyringPrompt.js b/js/ui/keyringPrompt.js index da26d2a82..814c9467b 100644 --- a/js/ui/keyringPrompt.js +++ b/js/ui/keyringPrompt.js @@ -84,7 +84,10 @@ const KeyringDialog = new Lang.Class({ if (this.prompt.password_visible) { let label = new St.Label(({ style_class: 'prompt-dialog-password-label' })); label.set_text(_("Password:")); - table.add(label, { row: row, col: 0, x_expand: false, x_fill: true, x_align: St.Align.START }); + table.add(label, { row: row, col: 0, + x_expand: false, x_fill: true, + x_align: St.Align.START, + y_fill: false, y_align: St.Align.MIDDLE }); this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry', text: '', can_focus: true}); @@ -100,7 +103,10 @@ const KeyringDialog = new Lang.Class({ if (this.prompt.confirm_visible) { var label = new St.Label(({ style_class: 'prompt-dialog-password-label' })); label.set_text(_("Type again:")); - table.add(label, { row: row, col: 0, x_expand: false, x_fill: true, x_align: St.Align.START }); + table.add(label, { row: row, col: 0, + x_expand: false, x_fill: true, + x_align: St.Align.START, + y_fill: false, y_align: St.Align.MIDDLE }); this._confirmEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry', text: '', can_focus: true});